<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<link
	href="<c:url value="/resources/bootstrap/2.3.2/css/bootstrap.css" />"
	rel="stylesheet">
<link
	href="<c:url value="/resources/bootstrap/2.3.2/css/bootstrap-responsive.css" />"
	rel="stylesheet">

<title>欢迎来到家在曼城</title>
<style>
 	input[type='text'],input[type='password']{
		height: auto;
    }

</style>
</head>

<body>
	<div class="container-fluid">
		<div class="row-fluid">
			<h2>加入学习小组申请审核通过或拒绝</h2>
			<hr>
			<form class="form-horizontal" id="myform" method="post" action=''>
				<div class="control-group">
					<label class="control-label" for="groupId">学习小组id</label>
					<div class="controls">
						<input type="text" id="groupId" name="groupId" >
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="userId">用户id</label>
					<div class="controls">
						<input type="text" id="userId" name="userId" >
					</div>
				</div>
				
				<div class="control-group">

					<div class="controls">
						<button class="btn btn-large btn-success" id="allowBtn"
							type="button">批准</button>
							
						<button class="btn btn-large btn-warning" id="refuseBtn"
							type="button">忽略</button>
					</div>

				</div>


			</form>
		</div>
	</div>
	<!--/row-->
</body>

<script src="<c:url value="/resources/jquery/1.9.1/jquery.min.js" />"></script>
<script src="<c:url value="/resources/bootstrap/2.3.2/js/bootstrap.min.js" />"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#allowBtn").click(function(){
		$("#myform").attr("action",'<c:url value="/api/study/group/user/1" />');
		$("#myform").submit();
	})
	$("#refuseBtn").click(function(){
		$("#myform").attr("action",'<c:url value="/api/study/group/user/0" />');
		$("#myform").submit();
	})
})
</script>